import uuid

from django.apps import AppConfig

from super.dynamic.core.loader import loader

mem_cache = {}


class DynamicConfig(AppConfig):
    default_auto_field = 'django.db.models.BigAutoField'
    name = 'super.dynamic'
    unique_key = str(uuid.uuid4())

    def ready(self):
        from .signals import save_table
        loader.load()

